3.3.70 \(\int (a+b \sec (c+d x))^n \sin (c+d x) \, dx\) [270]

Optimal. Leaf size=48 \[ \frac {b \, _2F_1\left (2,1+n;2+n;1+\frac {b \sec (c+d x)}{a}\right ) (a+b \sec (c+d x))^{1+n}}{a^2 d (1+n)} \]

[Out]

b*hypergeom([2, 1+n],[2+n],1+b*sec(d*x+c)/a)*(a+b*sec(d*x+c))^(1+n)/a^2/d/(1+n)

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 48, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 19, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.105, Rules used = {3959, 67} \begin {gather*} \frac {b (a+b \sec (c+d x))^{n+1} \, _2F_1\left (2,n+1;n+2;\frac {b \sec (c+d x)}{a}+1\right )}{a^2 d (n+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*Sec[c + d*x])^n*Sin[c + d*x],x]

[Out]

(b*Hypergeometric2F1[2, 1 + n, 2 + n, 1 + (b*Sec[c + d*x])/a]*(a + b*Sec[c + d*x])^(1 + n))/(a^2*d*(1 + n))

Rule 67

Int[((b_.)*(x_))^(m_)*((c_) + (d_.)*(x_))^(n_), x_Symbol] :> Simp[((c + d*x)^(n + 1)/(d*(n + 1)*(-d/(b*c))^m))
*Hypergeometric2F1[-m, n + 1, n + 2, 1 + d*(x/c)], x] /; FreeQ[{b, c, d, m, n}, x] &&  !IntegerQ[n] && (Intege
rQ[m] || GtQ[-d/(b*c), 0])

Rule 3959

Int[cos[(e_.) + (f_.)*(x_)]^(p_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_), x_Symbol] :> Dist[-f^(-1), Subs
t[Int[(-1 + x)^((p - 1)/2)*(1 + x)^((p - 1)/2)*((a + b*x)^m/x^(p + 1)), x], x, Csc[e + f*x]], x] /; FreeQ[{a,
b, e, f, m}, x] && IntegerQ[(p - 1)/2] && NeQ[a^2 - b^2, 0]

Rubi steps

\begin {align*} \int (a+b \sec (c+d x))^n \sin (c+d x) \, dx &=-\frac {\text {Subst}\left (\int \frac {(a-b x)^n}{x^2} \, dx,x,-\sec (c+d x)\right )}{d}\\ &=\frac {b \, _2F_1\left (2,1+n;2+n;1+\frac {b \sec (c+d x)}{a}\right ) (a+b \sec (c+d x))^{1+n}}{a^2 d (1+n)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.36, size = 72, normalized size = 1.50 \begin {gather*} \frac {b \cos (c+d x) \, _2F_1\left (2,1-n;2-n;\frac {a \cos (c+d x)}{b+a \cos (c+d x)}\right ) (a+b \sec (c+d x))^n}{d (-1+n) (b+a \cos (c+d x))} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Sec[c + d*x])^n*Sin[c + d*x],x]

[Out]

(b*Cos[c + d*x]*Hypergeometric2F1[2, 1 - n, 2 - n, (a*Cos[c + d*x])/(b + a*Cos[c + d*x])]*(a + b*Sec[c + d*x])
^n)/(d*(-1 + n)*(b + a*Cos[c + d*x]))

________________________________________________________________________________________

Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \left (a +b \sec \left (d x +c \right )\right )^{n} \sin \left (d x +c \right )\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sec(d*x+c))^n*sin(d*x+c),x)

[Out]

int((a+b*sec(d*x+c))^n*sin(d*x+c),x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))^n*sin(d*x+c),x, algorithm="maxima")

[Out]

integrate((b*sec(d*x + c) + a)^n*sin(d*x + c), x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))^n*sin(d*x+c),x, algorithm="fricas")

[Out]

integral((b*sec(d*x + c) + a)^n*sin(d*x + c), x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (a + b \sec {\left (c + d x \right )}\right )^{n} \sin {\left (c + d x \right )}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))**n*sin(d*x+c),x)

[Out]

Integral((a + b*sec(c + d*x))**n*sin(c + d*x), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))^n*sin(d*x+c),x, algorithm="giac")

[Out]

integrate((b*sec(d*x + c) + a)^n*sin(d*x + c), x)

________________________________________________________________________________________

Mupad [B]
time = 1.39, size = 73, normalized size = 1.52 \begin {gather*} \frac {\cos \left (c+d\,x\right )\,{\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right )}^n\,{{}}_2{\mathrm {F}}_1\left (1-n,-n;\ 2-n;\ -\frac {a\,\cos \left (c+d\,x\right )}{b}\right )}{d\,{\left (\frac {a\,\cos \left (c+d\,x\right )}{b}+1\right )}^n\,\left (n-1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(sin(c + d*x)*(a + b/cos(c + d*x))^n,x)

[Out]

(cos(c + d*x)*(a + b/cos(c + d*x))^n*hypergeom([1 - n, -n], 2 - n, -(a*cos(c + d*x))/b))/(d*((a*cos(c + d*x))/
b + 1)^n*(n - 1))

________________________________________________________________________________________